package com.zs.zhiling.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tbl_user")
public class User {
    @Id
    private Integer uid;
    private String username;
    private String userpwd;

    public User() {
    }

    public User(Integer uid, String username, String userpwd) {
        this.uid = uid;
        this.username = username;
        this.userpwd = userpwd;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", userpwd='" + userpwd + '\'' +
                '}';
    }
}
